I'm having the same issue on MacOS 10.15.7 and Xcode 12.4. For some reason, the SwiftUI previews won't work in any projects. Each time I resume preview, no matter what device is currently selected, I get the following error:
FailedToConnectToDTServiceHubError: Cannot connect to iPhone 12
Try disconnecting and reconnecting the device.
iPhone 12 {}
Did you manage to solve your problem @jainam26 ?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: